#ifndef __DATABASE_H__
#define __DATABASE_H__
#include <mysql/mysql.h>
#include <hiredis/hiredis.h>

int connectMySQL(MYSQL* mysql);
redisContext* connectRedis();    //连接redis数据库,并选择数据库1
int disconnectRedis(redisContext* context);
int redisSet(redisContext* context,const char* key,const char* value);
int redisGet(redisContext* context,const char* key,char * value);
int redisDel(redisContext* context,const char* key);


#endif
